package com.hdl.server.context;

import com.hdl.servlet.HttpServlet;

import java.util.HashMap;
import java.util.Map;

/**
 * 类名 Context
 * 描述 TODO
 *
 * @author hedonglin
 * @version 1.0
 * @date 2020/5/31 18:01
 */
public class Context {
    /**
     * 应用名称
     */
    private String context;

    /**
     * 应用目录
     */
    private String path;

    /**
     * web.xml目录
     */
    private String webXmlPath;

    /**
     * 应用名称对应的HttpServlet
     */
    private Map<String, HttpServlet> servletMap = new HashMap<>();

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public Map<String, HttpServlet> getServletMap() {
        return servletMap;
    }

    public void setServletMap(Map<String, HttpServlet> servletMap) {
        this.servletMap = servletMap;
    }

    public String getWebXmlPath() {
        return webXmlPath;
    }

    public void setWebXmlPath(String webXmlPath) {
        this.webXmlPath = webXmlPath;
    }
}
